package com.andkrup.easygame.game {
	import com.andkrup.serialization.IParser;	
	import com.andkrup.easygame.config.XmlConfigParser;	
	import com.andkrup.serialization.ParserProvider;
	import com.andkrup.serialization.IParserProvider;
	
	/**
	 * @author Andkrup
	 */
	public class GameAssetsParserProvider extends ParserProvider implements IParserProvider {
		public function GameAssetsParserProvider() {
		}
		
		public override function getParser(id:*) : IParser {
			var datatype:String = typeof(id);
			trace("GameAssetsParserProvider:> getParser() datatype: "+datatype);
			switch(datatype){
				case "xml":
					return new XmlConfigParser();
				default:
					return null;
			}
		}
	}
}
